import { defineStore } from 'pinia'

export const useLogin = defineStore('login', {
    state:()=>({
        isLogin:false
    }),
    actions:{
        updateLogin(value:boolean){
            this.isLogin=value
        }
    }
})
export const useRegister = defineStore('register', {
    state:()=>({
        isRegister:false
    }),
    actions:{
        updateRegister(value:boolean){
            this.isRegister=value
        }
    }
})
export const useLogining = defineStore('Logining', {
    state:()=>({
        isLogining:0,
        userinfoData:[]
    }),
    actions:{
        updateLogining(value:number){
            this.isLogining=value
        },
        updateuserinfoData(value:any){
            this.userinfoData=value
        }
    }
})
